/* eslint-disable import/prefer-default-export */
import request from '@/service/request';
import type { SubQuestion } from './types';

// 问题反馈
export function subQuestion(data: {
  feedback: {
    contactDetails: string;
    content: string;
    type: number;
  };
}) {
  return request.post<SubQuestion>({
    url: '/feedback/sumbitQuestion',
    data,
    interceptors: {
      responseInterceptor(res: SubQuestion): any {
        return {
          data: res,
        };
      },
    },
  });
}
